﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Daphne.GameShared;

namespace GameEngine.PositionConverter
{
    /// <summary>
    /// Factory class for position converters
    /// </summary>
    public static class PositionConverterFactory
    {
        public static IPositionConverter Create(enumGameType gameType)
        {
            switch (gameType)
            {
                case enumGameType.Czech:
                    return new CzechPositionConverter();
                case enumGameType.English:
                    return new EnglishPositionConverter();
                case enumGameType.International:
                    return new InternationalPositionConverter();   
                case enumGameType.Italian:
                    return new ItalianPositionConverter();
                case enumGameType.Russian:
                    return new RussianPositionConverter();
                case enumGameType.SouthGerman:
                    return new SouthGermanPositionConverter();
                case enumGameType.Spanish:
                    return new SpanishPositionConverter();
                default:
                    throw new Exception("Unknown Game Type");
            }
        }
    }
}
